import request from '@/utils/request'
export const Login = (data) => {
  return request({
    url: '/login',
    method: 'POST',
    data,
    noToken: true
  })
}

// 短信发送接口
export const Sendsms = (data) => {
  return request({
    url: '/sendsms',
    method: 'post',
    data
  })
}
// 用户注册接口
export const Register = (data) => {
  return request({
    url: '/register',
    method: 'post',
    data,
    noToken: true

  })
}
// 获取用户信息
export const userInfo = () => {
  return request({
    url: '/info',
    method: 'get'

  })
}
